﻿using DotNetty.Transport.Channels;
using System.Net;

namespace JTActiveSafety.DotNetty
{
    public class JTActiveSafetyUdpSession : JTActiveSafetySession
    {
        public JTActiveSafetyUdpSession(IChannel channel, EndPoint sender, string terminalPhoneNo) : base(channel, terminalPhoneNo)
        {
            base.TransportProtocolType = JTActiveSafetyTransportProtocolType.udp;
            Sender =  sender;
        }

        public JTActiveSafetyUdpSession() : base()
        {
            base.TransportProtocolType = JTActiveSafetyTransportProtocolType.udp;
        }

        public EndPoint Sender { get; set; }
    }
}
